{% extends "base.html" %}

{% load i18n %}
{% load openid_tags %}

{% block login %}
    {% if user.is_authenticated %}
        <span class="username">{% openid_icon openid user %} {{ user }}</span>
        <span class="separator">&nbsp;</span>
        <a href="{% url acct_email %}">{% trans "Account" %}</a>
        <span class="separator">&nbsp;</span>
        {% if user.is_staff %}<a href="/admin/">{% trans "Admin" %}</a>
        <span class="separator">&nbsp;</span>{% endif %}
        <a href="/openid/logout/?next={% url acct_logout %}">{% trans "Logout" %}</a>
    {% else %}
        <a href="{% url acct_login %}">{% trans "Log In" %}</a>
        <span class="separator">&nbsp;</span>
        <a href="{% url acct_signup %}">{% trans "Sign up" %}</a>
    {% endif %}
{% endblock %}

{% block logo_link_image %}<div class="project-title">News21</div>{% endblock %}

{% block tabs %}
    {% if user.is_authenticated %}
        <li class="tab_dashboard"><a href="/" title="{% trans 'Dashboard' %}" class="navbutton">{% trans "Dashboard" %}</a></li>
        <li class="tab_stories"><a href="{% url stories_story_list %}" title="{% trans 'Stories' %}" class="navbutton">{% trans "Stories" %}</a></li>
        <li class="tab_promos"><a class="navbutton" href="{% url promos_promo_list %}" title="{% trans 'Promos' %}">{% trans "Promos" %}</a></li>
        <li class="tab_topics"><a class="navbutton" href="{% url topics_topic_list %}">{% trans "Topics" %}</a></li>
        <li class="tab_notices"><a class="navbutton" href="{% url notification_notices %}">{% trans "Notices" %}{% if notice_unseen_count %} ({{ notice_unseen_count }}){% endif %}</a></li>
    {% endif %}
{% endblock %}

{% block sec_navigation %}
    <!--
    {% if user.is_authenticated %}
        <li><a class="navbutton" href="">Search</a></li>
        <li><a class="navbutton" href="{% url profile_list %}">Users</a></li>
    {% endif %}
    -->
{% endblock %}

{% block footer %}
<div class="legal">
    {% trans "&copy; 2009 News21" %}
    - <a href="{% url about %}">{% trans "About" %}</a>
    - <a href="{% url terms %}">{% trans "Terms of Service" %}</a>
    - <a href="{% url privacy %}">{% trans "Privacy Policy" %}</a>
    - <a href="{% url dmca %}">{% trans "DMCA Notice" %}</a>
</div>
{% endblock %}
